CREATE TABLE [dbo].[DemoTask]
(
[Oid] [uniqueidentifier] NOT NULL ROWGUIDCOL,
[Priority] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DemoTask] ADD CONSTRAINT [PK_DemoTask] PRIMARY KEY CLUSTERED  ([Oid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DemoTask] WITH NOCHECK ADD CONSTRAINT [FK_DemoTask_Oid] FOREIGN KEY ([Oid]) REFERENCES [dbo].[Task] ([Oid]) NOT FOR REPLICATION
GO
